package com.baike.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDate;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author author
 * @since 2021-10-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_teacher")
@ApiModel(value="TbTeacher对象", description="")
public class TbTeacher implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "teacher_id", type = IdType.AUTO)
    private Long teacherId;

    @ApiModelProperty(value = "教师姓名")
    private String teacherName;

    @ApiModelProperty(value = "教师密码")
    private String teacherPassword;

    @ApiModelProperty(value = "年龄")
    private Integer teacherAge;

    @ApiModelProperty(value = "性别(1.男,2女)")
    private Integer teacherSex;

    @ApiModelProperty(value = "注册日期")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date teacherRegisterTime;

    @ApiModelProperty(value = "简介")
    private String teacherIntroduce;

    @ApiModelProperty(value = "学历")
    private String teacherEducation;

    @ApiModelProperty(value = "头像/身份认证")
    private String teacherHead;

    @ApiModelProperty(value = "手机号")
    private String teacherMobile;

    @ApiModelProperty(value = "加盐")
    private String salt;

    @ApiModelProperty(value = "生日")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date birthday;

    @ApiModelProperty(value = "邮箱")
    private String email;


}
